package com.yequan.springdemo.ioc.annotation.po;

/**
 * @author yequan
 * @date 2021/10/20 16:42
 **/
public class Human {

    private Apple food;

    public void setFood(Apple food) {
        this.food = food;
    }

    public void eatFood() {
        System.out.println("human eat " + food.getColor());
    }
}
